<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="bg" xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1" />
        <title>Login - Административен панел</title>

        <link href="{{ asset("css/admin.css") }}" rel="stylesheet" type="text/css" media="screen" />
        <link href="{{ asset("css/normalize.css") }}" rel="stylesheet" type="text/css" media="screen" />
        <link href="{{ asset("css/bootstrap.min.css") }}" rel="stylesheet" type="text/css" media="screen" />
        <link href="{{ asset("css/validationEngine.jquery.css") }}" rel="stylesheet" type="text/css" media="screen" />

        <script src="{{ asset("js/jquery-1.11.0.min.js") }}"></script>
        <script src="{{ asset("js/jquery.validationEngine.js") }}"></script>
        <script src="{{ asset("js/jquery.validationEngine-bg.js") }}"></script>
        <script src="{{ asset("js/bootstrap.min.js") }}"></script>
        <script type="text/javascript">
            $(document).ready(function() {
                $("#loginForm").validationEngine();
            });
        </script>
    </head>
    <body>
        <div class="container-limited">

            <legend class='col-md-offset-1 col-md-10'>Login</legend>
            <form id="loginForm" class="form-horizontal" action='{{ path('admin_check') }}' method='POST'>
                <div class="form-group">
                    <label for="inputEmail3" class="col-md-4 control-label">Email</label>
                    <div class="col-md-4">
                        <input type="email" class="form-control input-md validate[required,custom[email]]" name='email' id="inputEmail3" placeholder="Email">
                    </div>
                </div>
                <div class="form-group">
                    <label for="inputPassword3" class="col-md-4 control-label">Password</label>
                    <div class="col-md-4">
                        <input type="password" class="form-control input-md  validate[required,minSize[4]]" name='password' id="inputPassword3" placeholder="Password">
                    </div>
                </div>
                {#<div class="form-group">
                    <div class="col-md-offset-4 col-md-10">
                        <div class="checkbox">
                            <label>
                                <input name='rememberMe' type="checkbox"> Remember me
                            </label>
                        </div>
                    </div>
                </div>#}
                <div class="form-group">
                    <div class="col-md-offset-4 col-md-4">
                        <button type="submit" class="btn btn-default">Sign in</button>
                    </div>
                </div>
                
                {% if message is defined %}
                    <div class="form-group">
                        <div class="col-md-offset-4 col-md-4 alert {{ message.type }}">
                            <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
                            {{ message.text }}
                        </div>
                    </div>
                {% endif %}
            </form>
        </div>
    </body>
</html>
